package operation;

import book.Book;
import book.BookList;

public class ShowOperation implements Ioperation{//借书操作
    public void work(BookList bookList){//就是在循环打印bookList数组的元素
        for (int i = 0; i <bookList.getNum() ; i++) {
            Book book=bookList.getBook(i);
            System.out.println(book);
        }
    }
}
